package com.example.springboot.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

@Component
@PropertySource(value = "classpath:config/applicationTest.properties")
public class ApplicationTest {

    @Value("${org.sfac.name}")
    private String name;
    @Value("${org.sfac.age}")
    private int age;
    @Value("${com.sfac.name}----${com.sfac.age}")
    private String desc;
    @Value("${org.sfac.random}")
    private String random;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getRandom() {
        return random;
    }

    public void setRandom(String random) {
        this.random = random;
    }
}
